function swap(tuple) {
    return [tuple[1], tuple[0]];
}
console.log(swap(['smd', 18]));
